package com.gy.api.pc.enterprise.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
public class EnterpriseSearchVO implements Serializable {
    private static final long serialVersionUID = -1L;

    @ApiModelProperty("审核状态 1审批中 2通过 3 不通过")
    private Integer examineState;

    @ApiModelProperty("企业名称")
    private String companyName;

    @ApiModelProperty("统一社会信用代码")
    private String companyCreditCode;

    @ApiModelProperty(value = "当前用户ID",hidden = true)
    private String userId;
    @ApiModelProperty(value = "节点名称",hidden = true)
    private String nodeName;

    @ApiModelProperty("任务类型状态:1待我处理、2我已处理")
    private Integer approvalStatus;

    @ApiModelProperty(value = "开始时间(yyyy-MM-dd)")
    private String startTime;
    @ApiModelProperty(value = "结束时间(yyyy-MM-dd)")
    private String endTime;


    @ApiModelProperty(value = "页数")
    private Integer pageNum;

    @ApiModelProperty(value = "每页行数")
    private Integer pageSize;


    public Integer getPageNum() {
        if (pageNum == null) {
            pageNum = 1;
        }
        return pageNum;
    }

    public Integer getPageSize() {
        if (pageSize == null) {
            pageSize = 10;
        }
        return pageSize;
    }
}
